package team.you.change.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import team.you.change.pojo.Teacher;
import team.you.change.pojo.User;

public interface TeacherMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Teacher record);

    Teacher selectByPrimaryKey(Integer id);
    //查询所有教师工号信息
    List<Teacher> selectAll(@Param("page") Integer page, @Param("limit") Integer limit);

    int updateByPrimaryKey(Teacher record);
    //根据工号查询教师
    Teacher selectByNo(String papers);

    Integer getCount();

    Integer UpdateByKey(@Param("id") String id,@Param("value") String value,@Param("field") String field);
    //更新工号状态
    Integer updateStateById(@Param("id") Integer id,@Param("value") Integer value,@Param("field") String field);
    //模糊查询
    List<Teacher> selectByLike(@Param("value") String value,@Param("type") Integer type,@Param("page") Integer page,@Param("limit") Integer limit);
}